<?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Login extends CI_Controller {
	function __construct()
	{
		parent::__construct();
	}
	function index()
	{
		$this->load->helper(array('form'));
		$this->loadModel('users_model' , 'mUsers' , TRUE);
		//submittewd{
		$username = $this->input->post("username");
		$password = $this->input->post("password");
		$isAuthenticated = $this->mUsers->login($username, $password );
		
		if($isAuthenticated){
		// /redirect/header  base_url();
		$this->load->view('login_view');
	}
}
?>